//
//  WCPopupLayerManager.h
//  WC
//
//  Created by 杨鑫 on 15/4/28.
//  Copyright (c) 2015年 智康. All rights reserved.
//

#import "MBProgressHUD.h"

@interface WCPopupLayerManager : NSObject <MBProgressHUDDelegate>

/**
 *  WCPopupLayerManager create
 *
 *  @return WCPopupLayerManager
 */
+ (instancetype)shareMg;

/**
 *  不带文字的菊花
 *
 *  @param view 视图控制器的视图
 *
 *  @return MBProgressHUD
 */
- (MBProgressHUD *)showSimple:(UIView *)view;

/**
 *  带文字的菊花
 *
 *  @param title titile
 *  @param view  视图控制器的视图
 *
 *  @return MBProgressHUD
 */
- (MBProgressHUD *)showWithLabel:(NSString *)title withView:(UIView *)view;

/**
 *  自动消失的文字弹出框
 *
 *  @param txt  title
 *  @param view 视图控制器的视图
 */
- (void)showTextOnly:(NSString *)txt withView:(UIView *)view;

/**
 *  在UIImageView中显示活动图标
 *
 *  @param imageView UIImageView
 */
- (MBProgressHUD *)showSimpleInImageView:(UIView *)imageView;

- (MBProgressHUD *)showProgressToView:(UIView *)view;

@end
